package com.tarena.elts.ui;

import java.awt.BorderLayout;
import java.awt.Color;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JWindow;
import javax.swing.border.LineBorder;

public class WelcomeWindows extends JWindow {
	public WelcomeWindows() {
		init();
	}

	private void init() {
		this.setSize(430, 300);
		JPanel panel = new JPanel(new BorderLayout());
		ImageIcon icon = new ImageIcon(getClass().getResource("welcome.png"));
		JLabel label = new JLabel(icon);
		panel.add(BorderLayout.CENTER, label);
		panel.setBorder(new LineBorder(Color.GRAY));
		this.add(panel);
		this.setLocationRelativeTo(null);
	}

	public static void main(String[] args) {
		WelcomeWindows w = new WelcomeWindows();
		w.setVisible(true);
	}
}
